package main

import (
	"tech-service/internal/app"
	"tech-service/internal/routes"
)

func main() {
	appConfig := app.InitApplication("config/config.yaml")
	//关闭连接
	defer appConfig.Cleanup()

	routes.NewRouterConfig(appConfig).SetupRoutes()
	appConfig.StartServer()
}
